package com.example.octopus.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class Collect {
    @JsonProperty
    private String _id;

    public Collect(String _id, String productId, String _openid, String title, List<String> img,double price) {
        this._id = _id;
        this.productId = productId;
        this._openid = _openid;
        this.title = title;
        this.img = img;
        this.price=price;
    }

    @JsonProperty
    private String productId;
    @JsonProperty
    private String _openid;
    @JsonProperty
    private String title;
    @JsonProperty
    private List<String> img;
    @JsonProperty
    private Double price;
}
